<!DOCTYPE html>
<html>
	<head>
		<title></title>
        @@include('./common/header.html')
    </head>
	<body>
        <div id="app">
		<div class="pub-title">后台管理</div>
		<ul class="pub-tab">
			<li class="option-list">
				<a href="article.html" class="option">文章</a>
				<a href="article_classify.html" class="option on">分类</a>
			</li>
			<li class="tab-block-list">
				<div class="head-tip">
					<ui-btn href="article_classify_detail.html?type=add">新增分类</ui-btn>
				</div>
				<table class="pub-table">
					<tr>
						<th>分类名称</th>
						<th width="80">排序</th>
						<th width="300">操作</th>
					</tr>
                    <template v-for="(v,k) in list" >
                        <tr class="checkbox" v-if="v.pid==0">
                            <td>
                                <span class="j-subordinate article-class" >
                                    <span class="iconfont" v-html="!v.state?'&#xe604;':'&#xe666;'" @click.stop="showlist(k)"></span>
                                    <a :href='"article_classify_detail.html?type=edit&id="+v._id+"&pid="+v.pid+"&title="+v.title'>{{v.title}}</a>
                                </span>
                            </td>
                            <td>{{v.rank}}</td>
                            <td>
                                <ui-btn type="border" :href='"article_classify_detail.html?type=add&pid="+v._id'>新增下级</ui-btn>
                                <ui-btn type="border" :href='"article_classify_detail.html?type=edit&id="+v._id+"&pid="+v.pid+"&title="+v.title'>编辑</ui-btn>
                                <!--<ui-btn type="border" @click='del(v._id,k)'>删除</ui-btn>-->
                            </td>
                        </tr>
                        <template v-for="(v2,k2) in list" >
                           <tr class="checkbox sed" v-show="v.state" v-if="v2.pid==v._id && v2.pid!=0">
                               <td><a :href='"article_classify_detail.html?type=edit&id="+v2._id+"&pid="+v2.pid+"&title="+v2.title'>{{v2.title}}</a></td>
                                <td>{{v2.rank}}</td>
                                <td>
                                    <ui-btn type="border" :href='"article_classify_detail.html?type=edit&id="+v2._id+"&pid="+v2.pid+"&title="+v2.title'>编辑</ui-btn>
                                    <ui-btn type="border" @click='del(v2._id,k2)'>删除</ui-btn>
                                </td>
                            </tr>
                        </template>
                    </template>
				</table>
			</li>
		</ul>
        </div>
        @@include('./common/footer.html')
	</body>
</html>
